﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register Src="../../../../_controltemplates/15/MII_FIF/Header.ascx" TagPrefix="UC" TagName="Header" %>
<%@ Register Src="../../../../_controltemplates/15/MII_FIF/LeftMenu.ascx" TagPrefix="UC" TagName="LeftMenu" %>
<%@ Register Src="../../../../_controltemplates/15/MII_FIF/Header.ascx" TagPrefix="UC" TagName="PageHeader" %>

<%@ Assembly Name="Microsoft.Web.CommandUI, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FormCHVM.aspx.cs" Inherits="MII_FIF.Layouts.MII_FIF.Checklist.FormCHVM" DynamicMasterPageFile="~masterurl/default.master" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">

</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
            <link href="../JQuery/jquery-ui-1.10.3.custom/css/ui-lightness/jquery-ui-1.10.3.custom.min.css" rel="stylesheet" />
    <script src="../JQuery/jquery-ui-1.10.3.custom/js/jquery-1.9.1.js" type="text/javascript"></script>
    <script src="../JQuery/jquery-ui-1.10.3.custom/js/jquery-ui-1.10.3.custom.min.js" type="text/javascript"></script>

    <link href="../Style.css" rel="stylesheet" type="text/css" />
        <div>
            <table class="TableLuar">
            <tr>
                <td class="LeftMenu">
                    <UC:LeftMenu runat="server" id="LeftMenu" />
                </td>
                <td style="vertical-align: top;">
                    <table class="TableDalam">
            <tr>
                <td>
        <table class="TableLuar">
            <tr>
                <td colspan="4">
                    <UC:PageHeader runat="server" ID="Header"></UC:PageHeader>
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    <h2 style="font-weight:bold">
                        <asp:Label ID="lblType" runat="server"></asp:Label> Virtual Machine</h2>
                </td>
            </tr>
            <tr>
                <td class="KolomKiri">Location</td>
                <td colspan ="3">
                    <asp:DropDownList runat="server" ID="ddlLocation" AutoPostBack="true" OnSelectedIndexChanged="ddlLocation_SelectedIndexChanged"></asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="KolomKiri">Physical Server</td>
                <td>
                    <asp:DropDownList runat="server" ID="ddlPhysicalServer" AutoPostBack="true" OnSelectedIndexChanged="ddlPhysicalServer_SelectedIndexChanged"></asp:DropDownList>
                </td>
            <tr style="display:none"><td colspan="4">
                <asp:Label ID="lblIDVM" runat="server"></asp:Label></td></tr>
            <tr><td colspan="4"><hr /></td></tr>
            </tr>
            <tr>
                <td class="KolomKiri">Inventory By</td>
                <td>
                    <asp:TextBox runat="server" ID="txtInventoryBy" Enabled="false"></asp:TextBox>                                        
                </td>
                <td class="kolomKanan">Inventory Date</td>
                <td>
                    <asp:TextBox runat="server" ID="txtInventoryDate" ReadOnly="true" TabIndex="-1" Enabled="false"></asp:TextBox>
                </td>               
            </tr>
            <tr>
                <td class="KolomKiri">System Class</td>
                <td colspan="3">
                    <asp:RadioButtonList runat="server" ID="rblSystemClass" RepeatDirection="Horizontal" RepeatLayout="Table" RepeatColumns="4" Enabled="false">
                        <asp:ListItem Text="Rack Mount Server" Value="Rack Mount Server"/>
                        <asp:ListItem Text="Storage" Value="Storage"/>
                        <asp:ListItem Text="Tape Backup" Value="Tape Backup"/>
                        <asp:ListItem Text="VMWare" Value="VMWare"/>
                        <asp:ListItem Text="Tower Server" Value="Tower Server"/>
                        <asp:ListItem Text="Blade Server" Value="Blade Server"/>
                        <asp:ListItem Text="Mainframe System" Value="Mainframe System"/>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td class="KolomKiri">Start From</td>
                <td colspan="3">
                    <asp:TextBox runat="server" ID="txtStartFrom" Enabled="false"/>
                </td>
            </tr>
            <tr>
                <td class="KolomKiri">System Brand</td>
                <td>
                    <asp:DropDownList runat="server" ID="ddlSystemBrand" Enabled="false" />                    
                </td>
                <td class="KolomKanan">System Type</td>
                <td>
                    <asp:DropDownList runat="server" ID="ddlSystemType" Enabled="false" />
                </td>
            </tr>          
            <tr>
                <td class="KolomKiri">System Detail</td>
                <td colspan="3">
                    <asp:TextBox runat="server" ID="txtSystemDetail" TextMode="MultiLine" Width="100%" Height="100px" Enabled="false"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    <asp:Panel runat="server" ID="pnlGuestDetail">
                        <hr />
                    </asp:Panel>
                    <h2>Guest Detail</h2>
                </td>
            </tr>
            <tr>
                <td class="KolomKiri">Name Host</td>
                <td>
                    <asp:TextBox runat="server" ID="txtNameHost" Enabled="false"/>
                </td>
                <td class="KolomKanan">IP VM</td>
                <td>
                    <asp:TextBox runat="server" ID="txtIPVM" Enabled="false"/>
                </td>
            </tr>
            <tr>
                <td class="KolomKiri">Operating System</td>
                <td colspan="3">
                    <asp:DropDownList runat="server" ID="ddlOperatingSystem" Enabled="false"/>                        
                </td>                
            </tr>
            <tr>
                <td class="KolomKiri">Application</td>
                <td colspan="3">
                    <asp:TextBox runat="server" ID="txtApplication" Enabled="false"/>                        
                </td>                
            </tr>
            <tr>
                <td class="KolomKiri">Processor</td>
                <td colspan ="4">
                    <table width="100%">
                        <tr>
                            <td style="width:25%;">
                                <asp:TextBox runat="server" ID="txtGuestProcessorUnit" MaxLength="10" Width="40" Enabled="false" onkeypress="return NumberOnly()"/>
                                Unit
                            </td>
                            <td colspan="3">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:RegularExpressionValidator ID="regexGuestProcessorUnit" runat="server" ControlToValidate="txtGuestProcessorUnit" ErrorMessage="Only Numbers" Display="None" ValidationExpression="^\d+$" ></asp:RegularExpressionValidator>
                            </td>                          
                            <td colspan="3">
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td class="KolomKiri">Memory</td>
                <td colspan="4">
                    <table width="100%">
                        <tr>
                            <td style="width:25%;">                    
                                <asp:TextBox runat="server" ID="txtGuestMemory" MaxLength="10" Width="40" Enabled="false" onkeypress="return NumberOnly()"/>
                                Total MB                              
                            </td>                           
                            <td colspan="3">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:RegularExpressionValidator ID="regexGuestMemory" runat="server" ControlToValidate="txtGuestMemory" ErrorMessage="Only Numbers" Display="None" ValidationExpression="^\d+$" ></asp:RegularExpressionValidator>
                            </td>
                            <td colspan="3">                                
                            </td>                           
                        </tr>
                    </table>
                </td>            
            </tr>
            <tr>
                <td class="KolomKiri">Disk</td>
                <td colspan="4">
                    <table width="100%">
                        <tr>
                            <td style="width:25%;">  
                                <asp:TextBox runat="server" ID="txtGuestDiskUnit" MaxLength="10" Width="40" Enabled="false" onkeypress="return NumberOnly()"/>
                                Unit                                
                            </td>
                            <td style="width:50%;" colspan="2">
                                <asp:TextBox runat="server" ID="txtGuestDiskProvisioned" MaxLength="10" Width="40" Enabled="false" onkeypress="return NumberOnly()"/>
                                Provisioned MB
                            </td>
                            <td style="width:25%;">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:RegularExpressionValidator ID="regexGuestDiskUnit" runat="server" ControlToValidate="txtGuestDiskUnit" ErrorMessage="Only Numbers" Display="None" ValidationExpression="^\d+$" ></asp:RegularExpressionValidator>
                            </td>
                            <td>
                                <asp:RegularExpressionValidator ID="regexGuestDiskProvisioned" runat="server" ControlToValidate="txtGuestDiskProvisioned" ErrorMessage="Only Numbers" Display="None" ValidationExpression="^\d+$" ></asp:RegularExpressionValidator>
                            </td>    
                            <td colspan="2">
                            </td>                        
                        </tr>                        
                    </table>
                </td> 
            </tr>       
            <tr>
            <td  class="KolomKiri">Attachment Download</td>
            <td  colspan="3">
                <asp:Button runat="server" ID="btnDownload" Text="Download" OnClientClick="download();" />
                <asp:Label runat="server" ID="lblFileName" ForeColor="Red"/>
            </td>
            </tr>   
            <tr>
                <td colspan="4">
                    <asp:Panel runat="server" ID="pnlSoftwareDetail">
                        <hr />
                    </asp:Panel>
                    <h2 style="font-weight:bold">Checklist Form</h2>
                </td>
            </tr>
            <tr>
                <td class="KolomKiri">Notes</td>
                <td colspan="3">
                    <asp:TextBox runat="server" ID="txtNotes" TextMode="MultiLine" Width="100%" Height="100px"></asp:TextBox>
                </td>
            </tr>          
            <tr>
                <td class="KolomKiri">Attachment</td>
                <td colspan="3">
                    <asp:FileUpload runat="server" ID="FUAttachment" />
                    <asp:HyperLink runat="server" ID="LinkAttachment" />
                </td>
            </tr>  
            <tr>
                <td colspan="4" align="center">
                    <asp:Label ID="lblError" runat="server" ForeColor="Red"></asp:Label>
                    <br />
                    <asp:Button runat="server" ID="btnRemove" Text="Remove Checklist" OnClick="btnRemove_Click"/>
                    <asp:Button runat="server" ID="btnSubmit" Text="Submit" OnClick="btnSubmit_Click" />
                    &nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button runat="server" ID="btnCancel" Text="Cancel" OnClick="btnCancel_Click" />
                </td>
            </tr>
        </table>
                    </td>
            </tr>
                        </table>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
Form CH VM
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" >

</asp:Content>
